package com.brillilab.elsearch.reponsitories;


import java.io.Serializable;

public interface BaseRepository<T,ID extends Serializable>{
    <S extends T> S save(S entity);
    Iterable<T> findAll();
    long count();
    void delete(T entity);
    boolean existsById(ID primaryKey);
}
